#!/bin/bash
TAG="input_debug"
HAS=`adb shell lsmod | grep "$TAG" | awk '{printf $1}'`
echo $HAS
if [ "$HAS" == "$TAG" ] ; then
	adb shell rmmod $TAG
fi
adb root
adb wait-for-device
adb push vir_input.ko /data/test
adb shell insmod /data/test/vir_input.ko
sleep 1
adb shell dmesg
#adb shell rmmod /data/test/vir_input.ko
